package test;

public class Teacher {
    private String id;
    private String name;
    private String gender;
    private Course course;

    public Teacher(String id, String name, String gender) {
        this.id = id;
        this.name = name;
        this.gender = gender;
    }

    public void teachCourse(Course course) {
        this.course = course;
        course.setTeacherId(this.id);
    }

    public String getId() { return id; }
    public void setId(String id) { this.id = id; }
    public String getName() { return name; }
    public void setName(String name) { this.name = name; }
    public String getGender() { return gender; }
    public void setGender(String gender) { this.gender = gender; }
    public Course getCourse() { return course; }
}
